package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.base.orm.MPage;
import com.weixing.mall.provider.model.domain.UpgradeMsg;
import com.weixing.mall.provider.model.dto.UpgradeMsgDto;
import com.weixing.mall.provider.model.vo.UpgradeMsgVo;

import java.util.List;

/**
 * <p>
 * 代理商模块-代理商升级通知 服务类
 * </p>
 *
 * @author 0202
 * @since 2020-05-29
 */
public interface IUpgradeMsgService extends IService<UpgradeMsg> {
    /**
     * 查询未读升级通知信息根据客服ID
     */
    IPage<UpgradeMsgVo> selectListByCustomerId(MPage page, Long id, Integer isRead);

    /**
     * 添加升级通知
     */
    void addUpgradeMsg(UpgradeMsgDto upgradeMsgDto);

    void upgradeMsgTask();
}
